﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace ATM
{
    public class PowerOffState : ATMState 
    {
        public ATM atm;

        public PowerOffState(ATM atm)
        {
            this.atm = atm;
        }

        public void pressPowerButton()
        {
            this.atm.state = this.atm.powerOnState;


            this.atm.switchButton.Text = "Power Off";
            this.atm.powerOn = true;
            this.atm.screen.BackColor = Color.White;
            this.atm.keypadScreen.BackColor = Color.White;

            this.atm.oneButton.Enabled = true;
            this.atm.twoButton.Enabled = true;
            this.atm.threeButton.Enabled = true;
            this.atm.fourButton.Enabled = true;
            this.atm.fiveButton.Enabled = true;
            this.atm.sixButton.Enabled = true;
            this.atm.sevenButton.Enabled = true;
            this.atm.eightButton.Enabled = true;
            this.atm.nineButton.Enabled = true;
            this.atm.zeroButton.Enabled = true;
            this.atm.enterButton.Enabled = true;

            this.atm.screen.Text = "欢迎使用ATM模拟系统!";
            this.atm.screen.Text += "\r\n\r\n";
            this.atm.screen.Text += "请输入银行卡号登录!";
        }

        public void pressTakeCashButton()
        {
            return;
        }

        public void pressInsertEnvelopButton()
        {
            return;
        }

        public void pressEnterButton()
        {
            return;
        }

    }
}
